function swiper_go(){
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: true,
        autoplay: 1000
    });
}

function swiper_go1(){
    $('.swiper-container').height($('.swiper-container').width());
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: true,
        autoplay: 1000
    });
}

function rand(n,m){
    cha = m-n;
    var num = Math.random()*cha + n;
    num = parseInt(num, 10);
    return num;
}

function imgload(){
    $("img.lazy").lazyload({
        //placeholder : "/Public/img/timg.gif",
        effect: "fadeIn",
        threshold: 0,
        //container: $("#container"),  // 对某容器中的图片实现效果
        // container,值为某容器.lazyload默认在拉动浏览器滚动条时生效,这个参数可以让你在拉动某DIV的滚动条时依次加载其中的图片
        //failurelimit : 10 // 图片排序混乱时
    });
    $('.lazy').removeClass('lazy');
}

function search(){
    $('form').submit();
}

function back(){
    history.back(-1);
}

$(function(){ 
    $(".hover").fadeOut(200);
});

$('a').click(function(){
    $(".hover").fadeIn(100);
});

function hover_in($content="加载中..."){
    $(".hover .text span").html($content);
    $(".hover").fadeIn(200);
}

function hover_out(){
    $(".hover").fadeOut(200);
    $(".hover .text span").html('加载中...');
}
